const PlaylistDetails = {
    namespaced: true,
    state: {
        playList: [
            {
                al:{
                    id: 34930257,
                    name: "成都",
                    pic: 2946691234868155,
                    picUrl: "https://p2.music.126.net/34YW1QtKxJ_3YnX9ZzKhzw==/2946691234868155.jpg",   
                },
                ar:[{
                    id:6731,
                    name: "赵雷"
                }],
                name: "成都",
                id:436514312,
                publishTime:1607616000000,
            }],
        // 默认下标为0
        playListIndex: 0,
        currentTime:0, //当前时间
        duration:0,//歌曲总时长
        lyric:null//歌词

    },
    mutations: {
        setPlayList(state, value) {
            state.playList = value
        },
        setPlayListIndex(state, value) { 
            state.playListIndex = value
        },
        unshiftPlayList(state, value) { 
            state.playList.unshift(value)
        },
        setCurrentTime(state, value){
            state.currentTime = value
        },
        setDuration(state, value){
            state.duration = value
        },
        setLyric(state, value){
            state.lyric = value
        }
    },
    actions: {
        name (context, payload) {
            
        }
    },
}
export default PlaylistDetails